package cn.wolfcode.mapper;

import cn.wolfcode.domain.Notice;
import cn.wolfcode.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Notice record);

    Notice selectByPrimaryKey(Long id);

    List<Notice> selectAll();

    int updateByPrimaryKey(Notice record);

	List<Notice> selectForList(QueryObject qo);

	Notice selectByContext(Long id);

	void deleteRelation(@Param("employeeId") Long employeeId, @Param("noticeId") Long noticeId);

	void insertRelation(@Param("employeeId") Long employeeId, @Param("noticeId") Long noticeId);

	String selectByStatus(@Param("employeeId") Long employeeId, @Param("noticeId") Long noticeId);
}